﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace photoshop.ViewModels
{
    public class ImageFileViewModel
    {
        private string path;
        private Uri uri;
        private BitmapFrame image;

        public ImageFileViewModel(string path)
        {
            this.path = path;
            this.uri = new Uri(path);
            this.image = BitmapFrame.Create(uri);
        }

        public string Path
        {
            get { return path; }

        }

        public Uri Uri
        {
            get { return uri; }
        }


        public BitmapFrame Image
        {
            get { return image; }
        }

        public override string ToString()
        {
            return Path;
        }
    }
}
